package choosebutton;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
/**格式 
 * 中国 省会 城市
 */
public class CityChooseJButton extends JButton{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * @param args
	 * @author jiao
	 */
	public CityChooseJButton(){
		this("中国 北京");
	}
	public CityChooseJButton(String city){
		this(city," ");
	}
	public CityChooseJButton(String city,String delim){
		city = city.replaceAll(delim, " ");
		this.setText(city);
		this.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e) {
				
			}});
	}
	
	

}
